package com.example.spring.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2024/12/31 10:53
 **/
@Data
@TableName("goods_report")
public class GoodsReport {
    @TableId(type = IdType.AUTO)
    private Long reportId;
    private Long goodsId;
    private Long reportUser;
    private String reason;
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date reportTime;
    @TableField(exist = false)
    private String goodsName;
}
